<?php

/**
* Print value
*
* @param mixed $v value for print
*/
function _d($v)
{
	if (is_bool($v)) $v = $v? "true" : "false";
	print "<div style='background-color:#777; color:#ffe; padding: 2px 10px; font-weight:bold; margin: 0'>Debug info:</div>";
	print "<xmp style='border:1px solid #555;background-color:#ffe;padding:10px;margin:0'>";
	print_r($v);
	print "</xmp>";
}